calendar: Add an element name
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 10:35:33 +0000 (06:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 10:35:33 +0000 (06:35 -0400)
This will allow us to drop hardcoded type names in the theme.

gtk/gtkcalendar.c

index 42157c2a1e7ff62923ba8cf56ffc73fa91d3041f..1c735cf64d71d5d578b49c408b396ad7997dd50c 100644 (file)
@@ -385,8 +385,6 @@ gtk_calendar_class_init (GtkCalendarClass *class)
   widget_class->drag_drop = gtk_calendar_drag_drop;
   widget_class->drag_data_received = gtk_calendar_drag_data_received;
 
-  gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR);
-
   /**
    * GtkCalendar:year:
    *
@@ -680,6 +678,9 @@ gtk_calendar_class_init (GtkCalendarClass *class)
                   NULL, NULL,
                   _gtk_marshal_VOID__VOID,
                   G_TYPE_NONE, 0);
+
+  gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR);
+  gtk_widget_class_set_css_name (widget_class, "calendar");
 }
 
 static void